import java.util.StringTokenizer;

/**
 * Created by User on 07.05.14.
 */
public class Deployee {
    private double ktu;

    public int setSalary(int salary) {
       return this.salary = salary;
    }

    private int salary;
    private String name;
    private String localization;

    public double getKtu() {
        return ktu;
    }

    public double getSalary() {
        return salary;
    }

    public String getName() {
        return name;
    }

    public String getLocalization() {
        return localization;
    }

    public Deployee(double ktu, String name, String localization, int salary) {
        this.ktu = ktu;
        this.salary = salary;
        this.name = name;
        this.localization = localization;
    }

    public Deployee(double ktu, String name, String localization) {

        this.ktu = ktu;
        this.name = name;
        this.localization = localization;
    }

    public Deployee (String fromFile){
        StringTokenizer tokenizer = new StringTokenizer(fromFile, " ");
        this.ktu = Double.parseDouble(tokenizer.nextToken());
        this.name = tokenizer.nextToken();
        this.localization = tokenizer.nextToken();
    }
    @Override
    public String toString() {
        return getKtu() + "  " + getName() + "  " + getLocalization() + "    " + getSalary();
    }
}
